#include "udpClient.hpp"
#include <memory>

void Usage(string proc)
{
    cerr << "\nUsage\n\t" << proc << " serverIp" << " serverPort\n" << endl;
}

int main(int argc, char* argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        exit(2);
    }
    string serverIp(argv[1]);
    uint16_t serverPort = atoi(argv[2]);
    unique_ptr<udpClient> ucli(new udpClient(serverIp, serverPort));
    ucli->initClient();
    ucli->start();
    return 0;
}
